<?php
            
namespace Admin\Model;
use Think\Model;
use Think\Upload;

/**
 * 商品规格模型
 *  
 */

class GroupPurchaseOrderModel extends SyncModel{
    
    protected $tableName = 'gp_order'; 
    
    //leancloud表名
    protected $leancloudName = "GroupPurchaseOrder";
    
    //映射的字段
    protected $_map = array('objectId' => 'id','updatedAt'=>'lastupdate'); 
    
    //配置字段
    protected $fields = array(
        'objectId',
        'updatedAt',
        'isSince',
        'amount',
        'gpId',
        'serialNo',
        'status',
        'syncStatus',
        '_type'=>array(
            'objectId'=>'varchar',
            'updatedAt'=>'int',
            'isSince'=>'int',
            'amount'=>'int',
            'gpId'=>'int',
            'serialNo'=>'int',
            'syncStatus'=>'int',
            'status'=>'int'
        )
    );
    
    
    //leancloud 字段类型
    protected $leancloudelds = array(
        "objectId"=>"String",
        'isSince'=>"Number",
        'amount'=>"Number",
        'gpId'=>"Number",
        'serialNo'=>"Number",
        'syncStatus'=>"Number",
        'status'=>'Number'
    );
}
